<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" id="c-moduleid" name="row[moduleid]" value="{$moduleid}" />
    <div class="form-group">
        <label for="c-versiontitle" class="control-label col-xs-12 col-sm-2">版本名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-versiontitle" data-rule="required" class="form-control" name="row[versiontitle]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-versionno" class="control-label col-xs-12 col-sm-2">版本号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-versionno" class="form-control" name="row[versionno]" type="number" value="1">
        </div>
    </div>
    <div class="form-group">
        <label for="c-versiondomain" class="control-label col-xs-12 col-sm-2">应用领域:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-versiondomain" data-rule="" class="form-control" name="row[versiondomain]" rows="6"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-price" class="control-label col-xs-12 col-sm-2">价格:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" name="row[price]" type="number" value="0" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-filepath" class="control-label col-xs-12 col-sm-2">打包文件:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-filepath" class="form-control" name="row[filepath]" type="text" value="" />
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="plupload-image5" class="btn btn-danger" data-input-id="c-filepath" data-multiple="false">
                          <i class="fa fa-upload"></i> {:__('Upload')}
                        </button>
                        <div id="html5_container" class="moxie-shim-html5">
                          <input id="upyun_upload" class="upyun_upload" type="file" accept=".rar,.zip" tabindex="-1" />
                        </div>
                    </span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <!-- <ul class="row list-inline plupload-preview" id="p-image"></ul> -->
        </div>
    </div>
    <div class="form-group">
        <label for="c-logo" class="control-label col-xs-12 col-sm-2">SQL文件:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-sqlpath" class="form-control" name="row[sqlpath]" type="text" value="" />
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="plupload-image6" class="btn btn-danger" data-input-id="c-sqlpath" data-multiple="false">
                          <i class="fa fa-upload"></i> {:__('Upload')}
                        </button>
                        <div id="html5_container" class="moxie-shim-html5">
                          <input id="upyun_upload1" class="upyun_upload" type="file" accept=".sql" tabindex="-1" />
                        </div>
                    </span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <!-- <ul class="row list-inline plupload-preview" id="p-image"></ul> -->
        </div>
    </div>

    <div class="form-group">
        <label for="c-intro" class="control-label col-xs-12 col-sm-2">简介:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[intro]" id="c-intro" cols="60" rows="5" class="form-control editor"></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-center">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
